iPad --- managedObject problem when [self.tableViewSection reloadData]

Posted by user345777 on Stack Overflow See other posts from Stack Overflow or by user345777
Published on 2010-05-20T06:37:48Z Indexed on 2010/05/20 6:40 UTC
Read the original article Hit count: 166

Hi , I am creating a news aggregator application that fetches a xml feed every 4 minutes. After the xml is loaded, I clear everything by deleting all the objects in the database, then save the new objects back into the database. I then call [self.tableViewSection reloadData]; to reload the tableView. Thats when I get a problem. As soon as the code gets to a section where i access the new [[managedObject valueForKey:@"event_text"] description] content it fails with a :

* Terminating app due to uncaught exception 'NSObjectInaccessibleException', reason: 'CoreData could not fulfill a fault for '0x4b3f6a0 ''

Now from the flow I described on top, it seems odd to me that the tableView is populated properly the next time i launch the application, with the "new" data I fetched in the previous session. So its not that data thats corrupt , but seems to me something goes wrong when I refetch the managedObject after saving new data.

Also keep in mind thats this app runs fine on the iPhone, its the iPad thats is giving me this problem.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ipad